<?php
class Application_Views_PersonView
{
    
    public function showAge( $age )
    {
        echo "<b>Mi Edad es ".$age."</b>";
    }
    
    public function insertAge()
    {
        ?>
         <form action="index.php">
            <input type="text" name="txtYear" />
            <input type="hidden" name="action" value="show" />
            <!--input type="hidden" name="controller" value="Person" /-->
            <input type="submit" value="calcular" />
         </form>
         <?php
    }
    
    public function showPerson($value){
        #var_dump($value);#tipo de valores que retorna
        $num=count($value);
        for($i=0;$i<$num;$i++)
        echo "<br/> <b>".Class_Message::get('welcomeUser')." ".$value[$i][0]."</b>";
        echo "<br>";
        echo "<a href='index.php?controller=Person&action=query'>mostrar nombre</a>";
    }
}